var express = require('express');
var router = express.Router();
const photoController = require('../controller/photoController');


/* GET home page. */
// router.get('/', function(req, res, next) {
//   res.render('index', { title: 'Express' });
// });

router.get('/list', photoController.getList)
router.post('/add', photoController.add);
router.delete("/del", photoController.del);
router.post("/upd", photoController.upd);
router.get("/search", photoController.search);





module.exports = router;
